{% load pp_url %}
{% load topictags %}
{% load issuetags %}
{% load consensustags %}
{% load argumenttags %}
{% load solutiontags %}
{% load commenttags %}
{% load tag_helpers %}


             {% if iss_obj.content_object %}  


                <div class="issue">
						    <div class="issueback">
                            <div class="bullet">
                            {% if request.user.is_authenticated %}
							    <h1> {{ iss_obj.interest|floatformat:0 }}
							    </h1>
                            {% else %}
							    <h1> {{ iss_obj.interest|floatformat:0 }}
							    </h1>
                            {% endif %}
							  <!--  <div class="bullet_daylight"></div>
							    <div class="bullet_verdict"></div> -->
						    </div>

                                
                    <div class="issueinformation">
                    <div class="issheader">
            <a href="{% pp_url template='issue_detail.html' object=iss_obj.content_object %}"> {{iss_obj.content_object.name}} </a></div>
                                    
											    <div class="iss_col1">
                                            {% pp_comment_count object=iss_obj.content_object.id %}
                                                         
{% if not request.object %}
                               submitted to <a href="{% pp_url template='issues.html' object=iss_obj.content_object.topic dimension=request.dimension %}">{{ iss_obj.content_object.topic.text }}</a>  by <a href="{% pp_url template='user_profile.html' dimension='i' object=iss_obj.content_object.user %}">{{ iss_obj.content_object.user.username }}</a> | {% endif %}{{ iss_obj.content_object.solutions }} solution{{ iss_obj.content_object.solutions|pluralize }} | {{ iss_obj.content_object.arguments }} argument{{ iss_obj.content_object.arguments|pluralize }} | {{ pp_comment.count }} comment{{ pp_comment.count|pluralize}} 
   
                                                 {% endpp_comment_count %}
									                                                                     
    </div>
											    
                                                  <div class="isstags">
                                            {{iss_obj.content_object.submit_date|date:"(d/m/Y h:sA)"}} Tags:
                                            {% pp_get_tags_for_object object=iss_obj.content_object %}
			                                                {% for tag in pp_tag.tags %}
                                            <a href="{% pp_url template='tag_detail.html' object=tag %}">{{tag.name}}</a>{% if not forloop.last %},{% endif%}
                                                            {% empty %}
                                                               N/A
                                                            {% endfor %}
                                                    {% endpp_get_tags_for_object %}
            							          </div>
                                        </div>
                                            <div class="buttons">

                                              {% pp_consensus_get object=iss_obj.content_object.id user=request.user small="small" %}
                                                    {% include '_voting_iss_obj_small.html' %}
                                                {% endpp_consensus_get %} 
                                                <div class="iss_button">                                                 
                                                {% ifequal 0 iss_obj.content_object.solutions %}
                                                {% if request.user.is_authenticated %}
                                                    <a href="{% pp_url template='submit_solution.html' object=iss_obj.content_object %}" class="small button blue">Submit Solution</a>  
                                                {% else %}
                                                    <a href="{% pp_url template='register.html' return_path=request.META.PATH_INFO return_query=request.META.QUERY_STRING object=iss_obj.content_object %}" class="small button blue">Submit Solution</a>  
                                                {% endif %}
                                                {% else %}
                                                <a href="{% pp_url template='solutions.html' object=iss_obj.content_object dimension=request.dimension start=0 end=20 %}" class="small button blue">See {{ iss_obj.content_object.solutions}} Solution{{ iss_obj.content_object.solutions|pluralize }}</a>
                                                {% endifequal %}  
                                                </div>
                                        </div>
					                </div>
				            </div>

{% endif %}
